<?php
namespace app\platform\model;
use think\Model;

class Applets extends Model{

    protected $resultSetType = 'applets';


	//查询小程序信息
	public static function queryMiniProgramInfo($where) {
		$result=self::where('name',$where['name'])->whereOr('appid',$where['appid'])->find();
		return $result;
	}
	//创建小程序
	public static function createMiniProgram($data) {
		$result=self::insert($data);
		return $result;
	}






}